/*package com.yet.center;

import java.util.Properties;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.Environment;
import org.springframework.core.env.EnvironmentCapable;
import org.springframework.core.env.PropertiesPropertySource;

public class CenterEnvironmentPostProcessor implements EnvironmentPostProcessor,InitializingBean ,EnvironmentCapable{

	@Override
	public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
		Properties properties = new Properties();
		//加载Center数据
		properties.setProperty("my", "gan");
		PropertiesPropertySource propertiesPropertySource = new PropertiesPropertySource("my", properties);
		environment.getPropertySources().addLast(propertiesPropertySource);
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("chushihua");
	}

	@Override
	public Environment getEnvironment() {
		return null;
	}

}
*/